<?php
$aNumBil = array('2'=>'due','3'=>'tre');
$sSql = "SELECT * FROM rgl_mod_rbil";
$objDB->query($sSql,'selMRB');
$aModRbil = array('0'=>'-- non calcolare');
while($aMRB = $objDB->fetch('selMRB')) {
	$aModRbil[$aMRB['id_mod_rbil']] = $aMRB['cod_mod_rbil']." - ".$aMRB['descr'];
}
$aModRque = array('0'=>'-- non calcolare');
$sSql = "SELECT * FROM rgl_mod_rque";
$objDB->query($sSql,'selMRQ');
$aModRque = array('0'=>'-- non calcolare');
while($aMRQ = $objDB->fetch('selMRQ')) {
	$aModRque[$aMRQ['id_mod_rque']] = $aMRQ['cod_mod_rque']." - ".$aMRQ['descr'];
}

$aCamForm = array();

$aCamForm[10][] = array('cod_mod_rglob', 'Codice modello', 4,16,'text',16, 16);

$aCamForm[20][] = array('descr', 'Descrizione', 4,16,'text',80, 80);

$aCamForm[30][0] = array('id_mod_rbil', 'Rating Bilancio', 4,13,'select',$aModRbil);
$aCamForm[30][1] = array('peso_rbil', 'Peso', 1,2,'text',2,5);

$aCamForm[40][0] = array('id_mod_rque', 'Rating a questionario', 4,13,'select',$aModRque);
$aCamForm[40][] = array('peso_rque', 'Peso', 1,2,'text',2,5);


$aCamForm[70][0] = array('nota', 'Nota', 4,16,'textarea',100, 5);
